package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by qyhl2 on 2017/12/27.
 */

public class PlayerWorksBean implements Parcelable {

    /**
     * ID
     */
    private Integer id;

    /**
     * 选手ID
     */
    private Integer playerId;

    /**
     * 名称
     */
    private String name;

    /**
     * 描述
     */
    private String description;

    /**
     * 音视频地址
     */
    private String Url;

    /**
     * 视频封面
     */
    private String videoCover;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 视频封面
     */
    private String videoUrl;

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPlayerId() {
        return playerId;
    }

    public void setPlayerId(Integer playerId) {
        this.playerId = playerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUrl() {
        return Url;
    }

    public void setUrl(String url) {
        Url = url;
    }

    public String getVideoCover() {
        return videoCover;
    }

    public void setVideoCover(String videoCover) {
        this.videoCover = videoCover;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeValue(this.playerId);
        dest.writeString(this.name);
        dest.writeString(this.description);
        dest.writeString(this.Url);
        dest.writeString(this.videoCover);
        dest.writeValue(this.type);
        dest.writeString(this.createTime);
        dest.writeString(this.videoUrl);
    }

    public PlayerWorksBean() {
    }

    protected PlayerWorksBean(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.playerId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.name = in.readString();
        this.description = in.readString();
        this.Url = in.readString();
        this.videoCover = in.readString();
        this.type = (Integer) in.readValue(Integer.class.getClassLoader());
        this.createTime = in.readString();
        this.videoUrl = in.readString();
    }

    public static final Creator<PlayerWorksBean> CREATOR = new Creator<PlayerWorksBean>() {
        @Override
        public PlayerWorksBean createFromParcel(Parcel source) {
            return new PlayerWorksBean(source);
        }

        @Override
        public PlayerWorksBean[] newArray(int size) {
            return new PlayerWorksBean[size];
        }
    };
}
